package com.league.blog.mapper;

import com.league.blog.pojo.Article;
import com.league.blog.pojo.ArticleWithBLOBs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleWithBLOBs record);

    int insertSelective(ArticleWithBLOBs record);

    ArticleWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ArticleWithBLOBs record);

    int updateByPrimaryKey(Article record);



    ArticleWithBLOBs selectByArticleCode(String articleCode);

    List<ArticleWithBLOBs> selectArticleListByUserAccount(String userAccount);
}